﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.Regions;
using Microsoft.Practices.Unity;
using RZD_maps.Modules.Graphics.Views;

namespace RZD_maps.Modules.Graphics
{
    public class GraphicsModule : IModule
    {
     private readonly IRegionManager regionManager;
     private readonly IUnityContainer container;

     public GraphicsModule(IUnityContainer container, IRegionManager regionManager)
        {
                this.container = container;
                this.regionManager = regionManager;
        }

        public void Initialize()
        {
            this.regionManager.RegisterViewWithRegion("DetailViewRegion",
                                                      () => this.container.Resolve<View>());
        }
    }
}
